package cn.edu.ecut.se2024.User;

public class purchase {
	private int number;
	private String supplier;
	private String pID;
	private String pname;
	private int pquantity;
	private int pprice;
	public purchase() {}
	public purchase(int number) {
		this.number=number;
	}
	public purchase(int number,String supplier,String pID,String pname,int pquantity,int pprice)
	{
		this.number=number;
		this.supplier=supplier;
		this.pID=pID;
		this.pname=pname;
		this.pquantity=pquantity;
		this.pprice=pprice;
	}

	
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public String getSupplier() {
		return supplier;
	}
	public void setSupplier(String supplier) {
		this.supplier = supplier;
	}
	public String getpID() {
		return pID;
	}
	public void setpID(String pID) {
		this.pID = pID;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public int getPquantity() {
		return pquantity;
	}
	public void setPquantity(int pquantity) {
		this.pquantity = pquantity;
	}
	public int getPprice() {
		return pprice;
	}
	public void setPprice(int pprice) {
		this.pprice = pprice;
	}
	@Override
	public String toString() {
		return "purchase [number=" + number + ", supplier=" + supplier + ", pID=" + pID + ", pname=" + pname
				+ ", pquantity=" + pquantity + ", pprice=" + pprice + "]";
	}
}